package cn.lucky.springcloud.controller;

import cn.lucky.springcloud.service.IMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author lingpeng.jiang
 * @create 2021-01-21-23:54
 */
@RestController
@RequestMapping("/message")
public class MessageProviderController {

    @Resource
    private IMessageProvider messageProvider;

    @GetMapping("/send")
    public String sendMessage(){
        return messageProvider.send();
    }
}
